home *** CD-ROM | disk | FTP | other *** search
/ Champak 64 / Volume 64 - JOGO DISK .iso / Games / skecthpad.swf / scripts / frame_35 / PlaceObject2_428_121 / CLIPACTIONRECORD onClipEvent(mouseDown).as < prev    next >
Text File  |  2008-04-25  |  2KB  |  59 lines

  1. onClipEvent(mouseDown){
  2.    this.inner.play();
  3.    if(_X > 130 && _Y > 110 && _Y < 440 && _X < 680)
  4.    {
  5.       if(_root.activeitem == 1)
  6.       {
  7.          drawing = true;
  8.          _root.createEmptyMovieClip("drawline" + symbolnumber,symbolnumber);
  9.          with(_root["drawline" + symbolnumber])
  10.          {
  11.             moveTo(_root.pencil._x,_root.pencil._y);
  12.          }
  13.       }
  14.       if(_root.activeitem == 3)
  15.       {
  16.          lining = true;
  17.          start_line_x = _X;
  18.          start_line_y = _Y;
  19.       }
  20.       if(_root.activeitem == 4)
  21.       {
  22.          ereasing = true;
  23.          _root.createEmptyMovieClip("drawline" + symbolnumber,symbolnumber);
  24.          with(_root["drawline" + symbolnumber])
  25.          {
  26.             moveTo(_root.pencil._x,_root.pencil._y);
  27.          }
  28.       }
  29.       if(_root.activeitem == 5)
  30.       {
  31.          circposx = _root._xmouse;
  32.          circposy = _root._ymouse;
  33.          circstartx = circposx;
  34.          circstarty = circposy;
  35.          circelling = true;
  36.       }
  37.       if(_root.activeitem == 6)
  38.       {
  39.          circposx = _root._xmouse;
  40.          circposy = _root._ymouse;
  41.          circstartx = circposx;
  42.          circstarty = circposy;
  43.          circelling = true;
  44.       }
  45.       if(_root.activeitem == 7)
  46.       {
  47.          squaring = true;
  48.          start_line_x = _X;
  49.          start_line_y = _Y;
  50.       }
  51.       if(_root.activeitem == 8)
  52.       {
  53.          fillsquaring = true;
  54.          start_line_x = _X;
  55.          start_line_y = _Y;
  56.       }
  57.    }
  58. }
  59.